package com.simple.business.domain.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
public class UserInfoUpdateDTO {

    @ApiModelProperty("用户名(昵称)")
    @Length(min = 2,max = 30,message = "用户名长度必须在2-30")
    private String nickName;

    @ApiModelProperty("性别 W:女;M:男;N:未知")
    private String sex;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("账号")
    private String userName;
}
